﻿using OccurrencesCore.Model;
using OccurrencesCore.Model.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OccurrencesCore.Service
{
    public partial class WorkflowTaskService
    {
        public static bool IsCompetenceApproval(WorkflowTaskTypeEnum taskType)
        {
            if (taskType == WorkflowTaskTypeEnum.ScheduledReturn_CompetenceApproval)
            {
                return true;
            }
            return false;
        }

        public List<WorkflowTask> FindByTaskTypeAndOccurrenceId(int workflowTaskTypeId, int occurrenceId)
        {
            return this._Repository.FindByTaskTypeAndOccurrenceId(workflowTaskTypeId,occurrenceId).ToList();
        }
    }
}
